#1/usr/bin/env python

from distutils.core import setup
import os
import sys
import py2exe

a = input("1: py2exe\n2: source\n\nWhich do you wish to build?: ")
if a == 1:
    sys.argv.append('py2exe')
elif a == 2:
    sys.argv.append('sdist')


setup(name='red-orchestra-2-server-manager',
      version='0.15',
      description='An automated red orchestra 2 server manager.',
      long_description='This program will monitor, start, stop, restart, update and backup your RO2 servers automatically.',
      author='Donald L. Talbert',
      author_email ='don@bwhgaming.net',
      url='http://www.bwhgaming.com/downloads/ro2sm/',
      py_modules=['main', 'autosetup', 'backup', 'loadconfig', 'serverautocontrol', 'updateserver',],
      data_files=[('.', ['.\config.ini', '.\misc.ini','.\LICENSE.txt','DisableWindowsErrorReporting.exe'])],
      license='MIT',
      options = {'py2exe': {'bundle_files': 1}},
      console = [{'script': "main.py", 'uac_info': "requireAdministrator"}],
      zipfile = None,
)